package cn.ruituo.adv;

public class StrTest2 {
    //不变性
    public static void main(String[] args) {
        String str="大扎好，我喜欢java";
        System.out.println(str.length());//>>>>char
        str=str.toUpperCase();//大写 str.toUpperCase()
        //str.toLowerCase();//
        System.out.println(str);
        String s="Ab";
        String s2=s;
        s="hello,java";
        System.out.println(s2);
        String s4=str.concat("and python");
        System.out.println(s4);
        System.out.println(">>>>>>>>>>>>>>>>");
        String s5="abc";
        String s6="abc";
        System.out.println(s5==s6);
    }
}
